# 1.导包
import os
import unittest

from p2p.config import DIR_PATH
from htmltestreport import HTMLTestReport
# 2.组合测试套件

suite=unittest.defaultTestLoader.discover("./scripts")
report_path=DIR_PATH+os.sep+"report"+os.sep+"p2p.html"

# 3.执行测试套件
HTMLTestReport(report_path,title="p2p接口自动化测试报告").run(suite)